package priv.yiyuan.example.design.payment;

import java.math.BigDecimal;

/**
 * 支付宝平台实现
 *
 * @author YiYuan
 * @data 2025/8/14
 * @apoNote
 */
public class AlipayPlatform implements PaymentPlatform {

    @Override
    public String getPlatformName() {
        return "支付宝";
    }

    @Override
    public boolean verify(String paymentId) {
        System.out.println("支付宝验证支付ID: " + paymentId);
        return paymentId != null && paymentId.startsWith("ali");
    }

    @Override
    public void processPayment(BigDecimal amount) {
        System.out.println("支付宝处理金额: " + amount);
    }
}
